package com.lefevre.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lefevre.cms.bean.staff.SysUsersRoles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUsersRolesMapper extends BaseMapper<SysUsersRoles> {

    /**
     * 获取用户的角色集
     *
     * @param userAccount 用户
     * @return
     */
    List<String> selectRoleIdsByUser(@Param("userAccount") String userAccount);
}
